package com.pureut.production.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.SpunlaceOutput;
import com.pureut.production.domain.dto.OutputStaticDto;
import com.pureut.production.domain.dto.SpunlaceOutputDto;
import com.pureut.production.domain.dto.SpunlaceOutputViewDto;
import com.pureut.production.domain.vo.SpunlaceOutputVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: CM
 * @date: 2023/2/20    17:18
 */
@Mapper
public interface SpunlaceOutputMapper extends BaseMapper<SpunlaceOutput> {

    /**
     * 产出打印回显
     * @param id
     * @return
     */
    SpunlaceOutputViewDto selectPrint(Long id);

    /**
     * 水刺产出列表
     * @param spunlaceOutputVo
     * @return
     */
    List<SpunlaceOutputDto> getList(SpunlaceOutputVo spunlaceOutputVo);

    /**
     * 根据id查看水刺产出
     * @param id
     * @return
     */
    SpunlaceOutputDto selectViewId(Long id);

    /**
     * 产出统计
     * @param moNumber
     * @return
     */
    List<OutputStaticDto> outputStatic(String moNumber);

    /**
     * 删除水刺制令单
     * @param ids
     * @return
     */
    int remove(String[] ids);
}
